﻿<?xml version="1.0" encoding="utf-8"?>
<deploymentModel>
  <templates>
    <folderTemplate name="ApplicationFolderStandard">
      <folders backupFolder="d:\backup\" deliveryFolder="D:\Sources\Deliveries\Workdir" workdirFolder="D:\Sources\Deliveries\Workdir"
               remoteDeliveryFolder="\\localhost\d$\Sources\Deliveries\Workdir" />
    </folderTemplate>
    <folderTemplate name="ServerFolderStandard">
      <folders toolsFolder="D:\PlaceHolder.HttpServer\Tools" tempFolder="D:\Temp\TempFolder" localSourceFolder="d:\temp\ToSources" />
    </folderTemplate>
    <winRmTemplate name="secure">
      <winRm winrmUseSSL="false" winrmPort="5985" />
    </winRmTemplate>
  </templates>
  <productsRepository>
    <product componentName="Apache" version="1.0" productRepository="D:\Temp\FromSources" packageName="Apache_2.2_x86_openssl" componentType="msi" />
    <product componentName="Tomcat" version="1.0" productRepository="D:\Temp\FromSources" packageName="Tomcat_7.0.5" componentType="executable" executableName="apache-tomcat-7.0.50.exe">
      <additionalParams>
        <param value="/S " />
        <param value="/D=" />
        <param relativeValue="Tomcat" targetedAttributeName="installationDirectory" separator="\" scope="product" />
      </additionalParams>
    </product>
    <product componentName="Oracle" version="1.0" productRepository="D:\Temp\FromSources" packageName="OracleClient" componentType="executable" />
  </productsRepository>
  <servers>
    <server name="localhost" applicationFolderTemplate="ApplicationFolderStandard" serverFolderTemplate="ServerFolderStandard" winRmTemplate="secure">
      <middlewares>
        <middleware type="Apache">
          <executionContainer name="TESTAPP1" rootFolder="d:\PlaceHolder.InetPub\" ipListener="127.0.0.1" logFolder="d:\logs">
          </executionContainer>
        </middleware>
      </middlewares>
      <products>
        <product name="Apache" installationDirectory="d:\temp\Install" keepLocal="true" />
        <product name="Tomcat" installationDirectory="d:\temp\Install" keepLocal="true" />
        <product name="Oracle" installationDirectory="d:\temp\Install" keepLocal="false" />
      </products>
    </server>
    <server name="localhost3" applicationFolderTemplate="ApplicationFolderStandard" serverFolderTemplate="ServerFolderStandard" winRmTemplate="secure">
      <middlewares>
        <middleware type="IIS7">
          <applicationPools>
            <applicationPool applicationPoolName="AppPool1" deploymentTemplateName="myAppPool1.xml" />
            <applicationPool applicationPoolName="AppPool2" deploymentTemplateName="myAppPool2.xml" />
          </applicationPools>
          <executionContainer name="PGCHEV1" rootFolder="d:\PlaceHolder.InetPub\EV1" ipListener="127.0.0.1" iislogFolder="d:\logs">
            <bindings>
              <binding protocol="http" ssl="true" port="443" />
            </bindings>
          </executionContainer>
          <executionContainer name="PGCHEV2" rootFolder="d:\PlaceHolder.InetPub\EV2" ipListener="127.0.0.2" iislogFolder="d:\logs">
            <bindings>
              <binding protocol="http" ssl="true" port="443" />
            </bindings>
          </executionContainer>
        </middleware>
        <middleware type="Daemon">
          <executionContainer name="Ev1" rootFolder="d:\Services\EV1" />
        </middleware>
      </middlewares>
      <products>
        <product name="" />
      </products>
    </server>
    <server name="localhost2" applicationFolderTemplate="ApplicationFolderStandard" serverFolderTemplate="ServerFolderStandard" winRmTemplate="secure">
      <middlewares>
        <middleware type="IIS7">
          <applicationPools>
            <applicationPool applicationPoolName="AppPool1" deploymentTemplateName="myAppPool1.xml" />
            <applicationPool applicationPoolName="AppPool2" deploymentTemplateName="myAppPool2.xml" />
          </applicationPools>
          <executionContainer name="PGCHPROD" rootFolder="d:\PlaceHolder.InetPub\PROD" ipListener="127.0.0.1" iislogFolder="d:\logs">
            <bindings>
              <binding protocol="http" ssl="true" port="443" />
            </bindings>
          </executionContainer>
        </middleware>
        <middleware type="Daemon">
          <executionContainer name="Ev1" rootFolder="d:\Services\EV1" />
        </middleware>
      </middlewares>
      <products>
        <product name="" />
      </products>
    </server>
  </servers>
  <applications>
    <application name="Application1" version="1.0" friendlyName="My Beautifull application">
      <components>
        <!-- Frontend UI  -->
        <component name="Frontweb" componentName="Frontweb" version="1.0" componentType="WebApplicationIIS7" middlewareTarget="IIS7" alias="/V1.0" packageName="PlaceHolder.Frontweb"
                   deploymentSteps="Inventory;Install">
          <relativeAttributes>
            <installationDirectory relativeValue="v1.0\http.Front" targetedAttributeName="rootFolder" separator="\" />
            <applicationPath relativeValue="V1.0" targetedAttributeName="name" separator="/" />
          </relativeAttributes>
        </component>
        <!-- Frontend UI services  -->
        <component name="Webapi" componentName="Webapi" version="1.0" componentType="WebApplicationIIS7" middlewareTarget="IIS7" alias="/V1.0/Webapi" packageName="PlaceHolder.Frontweb"
                   deploymentSteps="Inventory;Install">
          <relativeAttributes>
            <installationDirectory relativeValue="v1.0\http.Webapi" targetedAttributeName="rootFolder" separator="\" />
            <applicationPath relativeValue="V1.0/Webapi" targetedAttributeName="name" separator="/" />
          </relativeAttributes>
        </component>
        <!-- Core Monitoring -->
        <component name="MonitoringCore" componentName="MonitoringCore" componentType="Dll" packageName="PGMonitoring" installationDirectory="D:\Monitoring" deploymentSteps="Inventory;Install" />
        <!-- Monitoring to Front-end UI -->
        <component name="MonitoringWoa" componentName="MonitoringWebApp" componentType="Dll" middlewareTarget="IIS7" packageName="PGMonitoring" installationDirectory="D:\Monitoring" deploymentSteps="Install">
          <relativeAttributes>
            <targetedFolder relativeValue="v1.0\http.Front\bin" targetedAttributeName="rootFolder" separator="\" />
          </relativeAttributes>
        </component>
        <!-- Monitoring to Front-end UI services -->
        <component name="MonitoringWebApi" componentName="MonitoringWebApp" componentType="Dll" middlewareTarget="IIS7" packageName="PGMonitoring" installationDirectory="D:\Monitoring" deploymentSteps="Install">
          <relativeAttributes>
            <targetedFolder relativeValue="v1.0\http.WebApi\bin" targetedAttributeName="rootFolder" separator="\" />
          </relativeAttributes>
        </component>
      </components>
    </application>
    <application name="TestApp1" version="1.0" friendlyName="My Test 1 application">
      <components>
        <component name="Frontwebygo" componentName="Frontweb" version="1.0" componentType="WebApplicationIIS7" middlewareTarget="IIS7" alias="/V1.0" packageName="PlaceHolder.Frontweb"
                   deploymentSteps="Inventory;Install">
          <relativeAttributes>
            <installationDirectory relativeValue="v1.0\http.Front" targetedAttributeName="rootFolder" separator="\" />
            <applicationPath relativeValue="V1.0" targetedAttributeName="name" separator="/" />
          </relativeAttributes>
        </component>
        <!-- Core Monitoring -->
        <component name="MonitoringCore" componentName="MonitoringCore" componentType="Dll" packageName="PGMonitoring" installationDirectory="D:\Monitoring" deploymentSteps="Inventory;Install" />
        <!-- Monitoring to Front-end UI -->
        <component name="MonitoringWoa" componentName="MonitoringWebApp" componentType="Dll" middlewareTarget="Apache" packageName="PGMonitoring" installationDirectory="D:\Monitoring" deploymentSteps="Install">
          <relativeAttributes>
            <targetedFolder relativeValue="v1.0\http.Front\bin" targetedAttributeName="rootFolder" separator="\" />
          </relativeAttributes>
        </component>
      </components>
    </application>
  </applications>
  <deploymentTargets>
    <deploymentTarget environment="DEV" applicationName="Application1">
      <configuration>
        <logger outputFolder="d:\temp" archivingFolder="d:\temp\Target" />
        <mailing from="yannickgobert@yahoo.fr" to="yannickgobert@yahoo.fr" smtpserver="smtp.yahoo.fr" />
      </configuration>
      <deploymentNode nodeName="localhost" serverName="localhost">
        <component name="Frontweb" middlewareTarget="PGCHEV1" applicationPoolTarget="AppPool1" />
        <component name="Webapi" middlewareTarget="PGCHEV1" applicationPoolTarget="AppPool1" />
        <component name="MonitoringCore" />
        <component name="MonitoringWoa" middlewareTarget="PGCHEV1" />
        <component name="MonitoringWebApi" middlewareTarget="PGCHEV1" />
      </deploymentNode>
      <deploymentNode nodeName="localhost-rep" serverName="localhost2">
        <component name="Frontweb" middlewareTarget="PGCHEV2" applicationPoolTarget="AppPool1" />
        <component name="Webapi" middlewareTarget="PGCHEV2" applicationPoolTarget="AppPool1" />
        <component name="MonitoringCore" />
        <component name="MonitoringWoa" middlewareTarget="PGCHEV2" />
        <component name="MonitoringWebApi" middlewareTarget="PGCHEV2" />
      </deploymentNode>
    </deploymentTarget>
    <deploymentTarget environment="EV1" applicationName="TestApp1">
      <configuration>
        <logger outputFolder="d:\temp" archivingFolder="d:\temp\Targetev2" />
        <mailing from="yannickgobert@yahoo.fr" to="yannickgobert@yahoo.fr" smtpserver="smtp.yahoo.fr" />
      </configuration>
      <deploymentNode nodeName="TestDeployProducts" serverName="localhost">
        <component name="Frontwebygo" middlewareTarget="PGCHEV2" applicationPoolTarget="AppPool2" />
        <component name="MonitoringCore" />
        <component name="MonitoringWoa" middlewareTarget="TESTAPP1" />
      </deploymentNode>
    </deploymentTarget>
  </deploymentTargets>
</deploymentModel>
